home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1997 January: Mac OS SDK / Dev.CD Jan 97 SDK2.toast / Development Kits (Disc 2) / OpenDoc Development Framework / ODF-Interest Archive / August 96 / Get the category? < prev    next >
Encoding:
Internet Message Format  |  1996-08-15  |  1.8 KB  |  [TEXT/ttxt]

  1. Subject:     Get the category?
  2. Sent:        8/15/96 10:54 AM
  3. Received:    8/15/96 11:01 AM
  4. From:        Henri Lamiraux, lamiraux@apple.com
  5. Reply-To:    ODF Interest, ODF-Interest@CILabs.ORG
  6. To:          OpenDoc Development Framework Discussion List, ODF-Interest@CILabs.
  7.  
  8. I am reposting this message
  9.  
  10. ---------------------------------------------------------------------------
  11. ----
  12.  
  13.  
  14. In CMyFrame::CanAccept Drop I want to find the category of the part about 
  15. to
  16. be dropped, and want to compare this category with a prestored category. 
  17. How
  18. should I do this? I have tried to access the storage unit through the
  19. dragInfo parameter like this:
  20.  
  21.         ODStorageUnit* dragSU;
  22.         ODValueType partCategory = kODNULL;
  23.  
  24.         for (dragSU = dragInfo->First(ev); dragSU; dragSU =
  25. dragInfo->Next(ev))
  26.         {
  27.                 if(dragSU->Exists(ev, kODPropContents, partCategory, 0))
  28.                 {
  29.                         dragSU->Focus(ev, kODPropContents, 
  30. kODPosUndefined,
  31. kODNULL, 0, ODPosUndefined);
  32.                         partCategory = dragSU->GetType(ev);
  33.                 }
  34.         }
  35.  
  36. But this does not work
  37.  
  38. Steinar Tyvand
  39. --------------------------------------------------------------
  40. Steinar Tyvand             e-mail: Steinar.Tyvand@unimed.sintef.no
  41. SINTEF Unimed Rehab        Phone:  +47 22 06 78 29 (work)
  42. Box 124 Blindern           Fax:    +47 22 06 79 09 (work)
  43. N-0314 Oslo                Phone:  +47 67 56 17 79 (home)
  44. Norway                     Fax:    +47 67 56 05 36 (home)
  45. --------------------------------------------------------------
  46.  
  47.  
  48.  
  49. ........................................................................
  50.  Henri Lamiraux                                      lamiraux@apple.com
  51.  Apple Computer, Inc.                 OpenDoc(tm) Development Framework
  52. ........................................................................
  53.  
  54.  
  55.